import request from '@/utils/request'

// 获取用户地址
export function addressList(params) {
  return request({
    url: '/address/list',
    method: 'get',
    params
  })
}

export function addressFind(params) {
  return request({
    url: '/address/find',
    method: 'get',
    params
  })
}

// 修改收货地址
export function addressUpdate(params) {
  return request({
    url: '/address/edit',
    method: 'post',
    params
  })
}
// 添加收货地址
export function addressAdd(params) {
  return request({
    url: '/address/add',
    method: 'post',
    params
  })
}
// 删除收货地址
export function addressDel(params) {
  return request({
    url: '/address/delete',
    method: 'post',
    params
  })
}

